//
//  receiveChatReject.m
//  tcpoctest
//
//  Created by apple on 13-7-22.
//  Copyright (c) 2013年 gump. All rights reserved.
//

#import "receiveChatReject.h"
#import "chatDataSource.h"
#import "ChatContentInfo.h"
#import "chatuserdb.h"

@implementation receiveChatReject

-(void)processreceive
{
    //返回 16char(1),227char(1),
    //消息ID长度char(1),消息ID长度char(x)
    
    NSString *chatid = [logicsb ReadUnencodeString];
    
    ChatContentInfo *ccinfo = [[DataControl shareControl].chatDS getChatInfoByID:chatid];
    if (ccinfo != nil) {
        ccinfo.ichatReadState = CRS_SHIELD;
        
        [[DataBaseCtrol shareControl].chatuserdatabase UpdateChatState:ccinfo];
        [[DataControl shareControl].UICommendDS addUICommand:UC_CHAT_REFRESH];
    }
    
    [self ShowLog];
}

@end
